﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

    public class TB_Sys_SystemInfo : Entity
    {
        public TB_Sys_SystemInfo():base("TB_Sys_SystemInfo") {}

        #region Model
        private string _SystemInfoID;
        private string _SystemInfoName;
        private string _SystemInfoRemark;
        /// <summary>
        /// 系统配置编码
        /// </summary>
        public string SystemInfoID
        {
            get { return _SystemInfoID; }
            set
            {
                this.OnPropertyValueChange(_.SystemInfoID, _SystemInfoID, value);
                this._SystemInfoID = value;
            }
        }
        /// <summary>
        /// 系统配置名称
        /// </summary>
        public string SystemInfoName
        {
            get { return _SystemInfoName; }
            set
            {
                this.OnPropertyValueChange(_.SystemInfoName, _SystemInfoName, value);
                this._SystemInfoName = value;
            }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string SystemInfoRemark
        {
            get { return _SystemInfoRemark; }
            set
            {
                this.OnPropertyValueChange(_.SystemInfoRemark, _SystemInfoRemark, value);
                this._SystemInfoRemark = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
				_.SystemInfoID};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.SystemInfoID,
				_.SystemInfoName,
				_.SystemInfoRemark};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._SystemInfoID,
				this._SystemInfoName,
				this._SystemInfoRemark};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._SystemInfoID = DataUtils.ConvertValue<string>(reader["SystemInfoID"]);
            this._SystemInfoName = DataUtils.ConvertValue<string>(reader["SystemInfoName"]);
            this._SystemInfoRemark = DataUtils.ConvertValue<string>(reader["SystemInfoRemark"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._SystemInfoID = DataUtils.ConvertValue<string>(row["SystemInfoID"]);
            this._SystemInfoName = DataUtils.ConvertValue<string>(row["SystemInfoName"]);
            this._SystemInfoRemark = DataUtils.ConvertValue<string>(row["SystemInfoRemark"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_Sys_SystemInfo");
            /// <summary>
            /// 系统配置编码
            /// </summary>
            public readonly static Field SystemInfoID = new Field("SystemInfoID", "TB_Sys_SystemInfo", "系统配置编码");
            /// <summary>
            /// 系统配置名称
            /// </summary>
            public readonly static Field SystemInfoName = new Field("SystemInfoName", "TB_Sys_SystemInfo", "系统配置名称");
            /// <summary>
            /// 备注
            /// </summary>
            public readonly static Field SystemInfoRemark = new Field("SystemInfoRemark", "TB_Sys_SystemInfo", "备注");
        }
        #endregion


    }
}


